gtk-demo: Fix the links example
authorMatthias Clasen <mclasen@redhat.com>
Sun, 13 Apr 2014 01:42:29 +0000 (18:42 -0700)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 13 Apr 2014 01:44:40 +0000 (18:44 -0700)
The keynav dialog is transient to the example window; since the
example window is now modal, we need to make the keynav dialog
modal as well, so it can receive input.
Problem pointed out by Jasper St. Pierre.

demos/gtk-demo/links.c

index d4f6dddb20f58fc50025cfd0592f0d19b2836bb7..f0c6d80579209a7413bb315f9c12dd5fa0ddd096 100644 (file)
@@ -33,6 +33,7 @@ activate_link (GtkWidget   *label,
                  "The term <i>keynav</i> is a shorthand for "
                  "keyboard navigation and refers to the process of using "
                  "a program (exclusively) via keyboard input.");
+      gtk_window_set_modal (dialog, TRUE);
 
       gtk_window_present (GTK_WINDOW (dialog));
       g_signal_connect (dialog, "response", G_CALLBACK (response_cb), NULL);